Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update eXOF proposal with EUROCXOF rateFeed #127

Merged
merged 18 commits into from
Sep 21, 2023
Merged

Conversation

bowd
Copy link
Contributor

@bowd bowd commented Sep 8, 2023

Description

We decided to differentiate between EURXOF (pure exchange rate) and EUROCXOF (EUROC->EUR->XOF) rate which takes into account the EUROCEUR rate as well, and use the latter as the referace rate for the eXOF/axlEUROC pool.
This allows us to configure everything using a single ValueDeltaBreaker, so we can remove the nonrecoverable one, as the current one on mainnet has defaultCooldown = 0 as well.

⚠️ Can't fully test this until we have oracles reporting for EUROCXOF ⚠️

Other changes

  • Added an eXOFRevert.sol which was used to revert the previously passed proposal. This will be updated to reflect the current proposal after it's passed on baklava.
  • Changed the yarn cgp script to support -r for revert.

Tested

Not fully tested as there are no oracle reports on baklava for EUROCEUR.

Related issues

Fixes https://github.com/mento-protocol/mento-general/issues/313

Backwards compatibility

N/A

Documentation

N/A

rateFeedConfig.valueDeltaBreaker0 = Config.ValueDeltaBreaker({
enabled: true,
threshold: FixidityLib.newFixedFraction(5, 1000), // 0.005
Copy link
Contributor

@sissnad sissnad Sep 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing this value breaker on EURXOF has two consequences:

  1. Only one of the base pairs that build EUROC/XOF has a tight (50bps) value breaker
  2. The CELO/eXOF pool will only inherit the 10% value breaker. In particular, CELO/eXOF will stay active while EUROC/eXOF is suspended until it auto-recovers.

I think we could live with 1, by maybe lowering EUROC/XOF value breaker threshold to 50bps.
But 2 does not feel great. Allowing minting / redemption through CELO/eXOF while we do not via EUROC

script/upgrades/eXOF/Config.sol Outdated Show resolved Hide resolved
script/upgrades/eXOF/Config.sol Outdated Show resolved Hide resolved
Copy link
Contributor

@sissnad sissnad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to go 🚀

Copy link
Contributor

@nvtaveras nvtaveras left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢 ⛰️

@nvtaveras nvtaveras merged commit 411686f into main Sep 21, 2023
1 check passed
@nvtaveras nvtaveras deleted the bowd/eXOF-change-ratefeeds branch September 21, 2023 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants